package com.zhitong.money.services.api;

import com.github.pagehelper.PageInfo;
import com.zhitong.money.entity.Role;

import java.util.List;
import java.util.Map;

public interface IRoleService {

    public Role findRoleById(String id) throws Exception;

    public List<String> findPidsById(String id) throws Exception;

    public List<Role> findAllRole() throws Exception;

    public PageInfo findRoleByPage(Map<String,Object> map) throws Exception;

    public List<Role> findRoleByMap(Map<String,Object> map) throws Exception;

    public void addRole(Map<String,Object> map) throws Exception;

    public void updateRole(Map<String,Object> map) throws Exception;

    public int delRole(String id) throws Exception;

    public int delRolesByIds(List<String> ids) throws Exception;

}
